import java.util.Date;



public class Main {

	public static String path;
	public static void main(String[] args) {
		try {
	        path = args[0];
	    }
	    catch (ArrayIndexOutOfBoundsException e){
	    	System.err.println(e);
	    }
		createNewProject();
		
	}

	private static void createNewProject() {
		Project project = new Project();
		project.Create("NewProject", new Date(),null);
		File2 file = new File2();
		file.ReadIn = project;
		
		if(path == null){
			file.readFilePath();	
		} else {
			file.readFilePath(path);
		}
		
		project.LookForFile = file;
		project.CreateGraph();
	}
}
